package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 评论管理对象 tb_comment
 * 
 * @author hyx
 * @date 2025-03-08
 */
public class CwComment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 评论 ID */
    private Long commentId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 评论内容 */
    @Excel(name = "评论内容")
    private String commentContent;

    /** 评论创建时间 */
    private Date createdComment;

    /** 评论更新时间 */
    private Date updatedComment;

    /** 父评论 ID */
    @Excel(name = "父评论 ID")
    private Long parentCommentId;

    /** 文章 ID */
    @Excel(name = "文章 ID")
    private Long articleId;

    public void setCommentId(Long commentId)
    {
        this.commentId = commentId;
    }

    public Long getCommentId() 
    {
        return commentId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setCommentContent(String commentContent) 
    {
        this.commentContent = commentContent;
    }

    public String getCommentContent() 
    {
        return commentContent;
    }
    public void setCreatedComment(Date createdComment) 
    {
        this.createdComment = createdComment;
    }

    public Date getCreatedComment() 
    {
        return createdComment;
    }
    public void setUpdatedComment(Date updatedComment) 
    {
        this.updatedComment = updatedComment;
    }

    public Date getUpdatedComment() 
    {
        return updatedComment;
    }
    public void setParentCommentId(Long parentCommentId) 
    {
        this.parentCommentId = parentCommentId;
    }

    public Long getParentCommentId() 
    {
        return parentCommentId;
    }
    public void setArticleId(Long articleId) 
    {
        this.articleId = articleId;
    }

    public Long getArticleId() 
    {
        return articleId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("commentId", getCommentId())
            .append("userId", getUserId())
            .append("commentContent", getCommentContent())
            .append("createdComment", getCreatedComment())
            .append("updatedComment", getUpdatedComment())
            .append("parentCommentId", getParentCommentId())
            .append("articleId", getArticleId())
            .toString();
    }
}
